package com.baozi.product.DTO;

import lombok.Data;

@Data
public class CartDto {

    /**商品id*/
    private String productId;

    /**商品数量*/
    private Integer productQuantity;

    /**自定义构造方法且用了@Data，需要手动加入无参构造,*/
    public CartDto() {
    }

    public CartDto(String productId, Integer productQuantity) {
        this.productId = productId;
        this.productQuantity = productQuantity;
    }
}
